
package com.work.util;

import org.apache.commons.lang3.exception.ExceptionUtils;
import org.slf4j.*;

public class Log {

	static Logger logger = LoggerFactory.getLogger("Loger");
	
	public static void debug(String message)
	{
		logger.debug(message);
	}

	public static void info(Class<?> source, String message)
	{
		logger.info(message);
	}
	
	public static void info(String message)
	{
		info(Log.class, message);
	}


	public static void error(Class<?> source, Exception e)
	{
		error(source, "", e);
	}
	
	public static void error(Class<?> source, String message, Exception e)
	{
		System.out.println(message + ". " + ExceptionUtils.getStackTrace(e));
	}
	
	public static void error(Class<?> source, String message)
	{
		System.out.println(message);
	}
}
